<template>
  <div>
    <div>
      <h4>呼吸困难等级</h4>
      <el-row>
        <el-col :span="7">
          <span>正常</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.lung_function_assess2_radio1">
              <el-radio :label="1">正常</el-radio>
              <el-input v-model="pgForm.lung_function_assess2_input1" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7" :offset="1">
          <span>轻度</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.lung_function_assess2_radio2">
              <el-radio :label="1">能上楼梯从第1层到第5层</el-radio>
              <el-radio :label="2">能上楼梯从第1层到第4层</el-radio>
              <el-radio :label="3">能上楼梯从第1层到第3层</el-radio>
              <el-input v-model="pgForm.lung_function_assess2_input2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7" :offset="1">
          <span>中度</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.lung_function_assess2_radio3">
              <el-radio :label="1">如按自己速度不休息能走1km</el-radio>
              <el-radio :label="2">如按自己速度不休息能走500m</el-radio>
              <el-radio :label="3">如按自己速度不休息能走200m</el-radio>
              <el-input v-model="pgForm.lung_function_assess2_input3" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7">
          <span>重度</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.lung_function_assess2_radio4">
              <el-radio :label="1">走走歇歇能走200m</el-radio>
              <el-radio :label="2">走走歇歇能走100m</el-radio>
              <el-radio :label="3">走走歇歇能走50m</el-radio>
              <el-input v-model="pgForm.lung_function_assess2_input4" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7" :offset="1">
          <span>极重度</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.lung_function_assess2_radio5">
              <el-radio :label="1">起床、做身边的事感到呼吸困难</el-radio>
              <el-radio :label="2">卧床、做身边的事就感到呼吸困难</el-radio>
              <el-radio :label="3">卧床、说话也感到呼吸困难</el-radio>
              <el-input v-model="pgForm.lung_function_assess2_input5" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "lung_function_assess2",
  title: "呼吸困难等级",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm: {
        lung_function_assess2_input1: '',
        lung_function_assess2_input2: '',
        lung_function_assess2_input3: '',
        lung_function_assess2_input4: '',
        lung_function_assess2_input5: '',

        lung_function_assess2_radio1: '',
        lung_function_assess2_radio2: '',
        lung_function_assess2_radio3: '',
        lung_function_assess2_radio4: '',
        lung_function_assess2_radio5: '',
      }
    }
  }
}
</script>

<style scoped>
.el-row {
  margin: 10px 0;
  padding: 20px 10px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}

.el-radio{
  display: block;
  margin-bottom: 15px;
}
span{
  display: block;
}
.el-radio-group{
  padding: 10px 20px;
}

</style>
